import request from '@/utils/request'
import URL from '@/api/baseUrl'
export default class SailingSchedule {
  /**
   * 查询列表
   */
  static list (data = {}) {
    return request.get(`${URL.ocean}/ocean-ship-schedule/list`, data)
  }
    /**
   * 查询列表
   */
  static queryHistoryVesselNameList (data = {}) {
    return request.get(`${URL.ocean}/ocean-ship-schedule/queryHistoryVesselNameList`, data)
  }
  /**
   * 查询详情
   */
  static getInfo (id) {
    return request.get(`${URL.ocean}/ocean-ship-schedule/getInfo/${id}`)
  }
  /**
   * 删除
   */
  static remove (ids) {
    return request.delete(`${URL.ocean}/ocean-ship-schedule/remove`,ids)
  }
  /**
   * 新增
   */
  static add (data = {}) {
    return request.post(`${URL.ocean}/ocean-ship-schedule/add`, data)
  }
  /**
   * 修改
   */
  static edit (data = {}) {
    return request.put(`${URL.ocean}/ocean-ship-schedule/edit`, data)
  }
}
